<!doctype html><html lang dir=ltr><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>科力锐 Oracle RAC | Hui.Ke - Blog</title><meta name=generator content="Hugo Eureka 0.9.3"><link rel=stylesheet href=https://b.hui.ke/css/eureka.min.9cec6350e37e534b0338fa9a085bf06855de3b0f2dcf857e792e5e97b07ea905d4d5513db554cbc26a9c3da622bae92d.css><script defer src=https://b.hui.ke/js/eureka.min.fa9a6bf6d7a50bb635b4cca7d2ba5cf3dfb095ae3798773f1328f7950028b48c17d06276594e1b5f244a25a6c969a705.js></script>
<link rel=preconnect href=https://fonts.googleapis.com><link rel=preconnect href=https://fonts.gstatic.com crossorigin><link rel=preload href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap" as=style onload='this.onload=null,this.rel="stylesheet"'><link rel=stylesheet href=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/vs.min.css media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/bash.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/ini.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/json.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/php.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/python.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/shell.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/sql.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/x86asm.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/xml.min.js crossorigin></script>
<link rel=stylesheet href=https://b.hui.ke/css/highlightjs.min.2958991528e43eb6fc9b8c4f2b8e052f79c4010718e1d1e888a777620e9ee63021c2c57ec7417a3108019bb8c41943e6.css media=print onload='this.media="all",this.onload=null'><script defer type=text/javascript src=https://lib.baomitu.com/font-awesome/6.1.1/js/all.min.js></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css integrity=sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.js integrity=sha384-VQ8d8WVFw0yHhCk5E8I86oOhv48xLpnDZx5T9GogA/Y84DcCKWXDmSDfn13bzFZY crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/contrib/auto-render.min.js integrity=sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}]})})</script><script defer src=https://cdn.jsdelivr.net/npm/mermaid@8.14.0/dist/mermaid.min.js integrity=sha384-atOyb0FxAgN9LyAc6PEf9BjgwLISyansgdH8/VXQH8p2o5vfrRgmGIJ2Sg22L0A0 crossorigin></script>
<link rel=icon type=image/png sizes=32x32 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_32x32_fill_box_center_3.png><link rel=apple-touch-icon sizes=180x180 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_180x180_fill_box_center_3.png><meta name=description content="  本文是对科力锐灾备培训中，针对 Oracle RAC 系统备份、接管、恢复的操作记录。为博主培训学习的个人笔记，未必是正确操作，勿将其作为科力锐官方技术文档，仅供参考！"><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://b.hui.ke/posts/"},{"@type":"ListItem","position":2,"name":"科力锐 Oracle RAC","item":"https://b.hui.ke/posts/clerware-oracle-rac/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://b.hui.ke/posts/clerware-oracle-rac/"},"headline":"科力锐 Oracle RAC | Hui.Ke - Blog","datePublished":"2020-02-13T17:18:34+08:00","dateModified":"2020-02-13T17:18:34+08:00","wordCount":1031,"author":{"@type":"Person","name":"Hui.Ke"},"publisher":{"@type":"Person","name":"Hui.Ke","logo":{"@type":"ImageObject","url":"https://b.hui.ke/icon.png"}},"description":"\u003cp\u003e  本文是对科力锐灾备培训中，针对 Oracle RAC 系统\u003cstrong\u003e备份\u003c\/strong\u003e、\u003cstrong\u003e接管\u003c\/strong\u003e、\u003cstrong\u003e恢复\u003c\/strong\u003e的操作记录。为博主培训学习的\u003cstrong\u003e个人笔记\u003c\/strong\u003e，未必是正确操作，\u003cstrong\u003e勿将其作为\u003c\/strong\u003e\u003cdel\u003e科力锐官方技术文档\u003c\/del\u003e，仅供参考！\u003c\/p\u003e"}</script><meta property="og:title" content="科力锐 Oracle RAC | Hui.Ke - Blog"><meta property="og:type" content="article"><meta property="og:image" content="https://b.hui.ke/icon.png"><meta property="og:url" content="https://b.hui.ke/posts/clerware-oracle-rac/"><meta property="og:description" content="  本文是对科力锐灾备培训中，针对 Oracle RAC 系统备份、接管、恢复的操作记录。为博主培训学习的个人笔记，未必是正确操作，勿将其作为科力锐官方技术文档，仅供参考！"><meta property="og:site_name" content="Hui.Ke - Blog"><meta property="article:published_time" content="2020-02-13T17:18:34+08:00"><meta property="article:modified_time" content="2020-02-13T17:18:34+08:00"><meta property="article:section" content="posts"><meta property="article:tag" content="Oracle RAC"><meta property="article:tag" content="灾备"><meta property="og:see_also" content="https://b.hui.ke/posts/clerware-faq/"><meta property="og:see_also" content="https://b.hui.ke/posts/clerware-deployment-process/"><meta property="og:see_also" content="https://b.hui.ke/posts/clerware-system-administrator/"><meta property="og:see_also" content="https://b.hui.ke/posts/clerware-admin/"><script>!function(e){"use strict";!function(){var i,s=window,o=document,a=e,c="".concat("https:"===o.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=o.createElement("script"),r=o.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",a.d=n,i=function(){s.LA.ids.push(a)},s.LA?s.LA.ids&&i():(s.LA=e,s.LA.ids=[],i()),r.parentNode.insertBefore(n,r)}()}({id:"Jgb8aUbG5e3rqhrs",ck:"Jgb8aUbG5e3rqhrs",autoTrack:!0,hashMode:!0})</script><body class="flex min-h-screen flex-col"><header class="min-h-16 pl-scrollbar bg-secondary-bg fixed z-50 flex w-full items-center shadow-sm"><div class="mx-auto w-full max-w-screen-xl"><script>let storageColorScheme=localStorage.getItem("lightDarkMode");((storageColorScheme=="Auto"||storageColorScheme==null)&&window.matchMedia("(prefers-color-scheme: dark)").matches||storageColorScheme=="Dark")&&document.getElementsByTagName("html")[0].classList.add("dark")</script><nav class="flex items-center justify-between flex-wrap px-4 py-4 md:py-0"><a href=/ class="me-6 text-primary-text text-xl font-bold">Hui.Ke - Blog</a>
<button id=navbar-btn class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
<i class="fas fa-bars"></i></button><div id=target class="hidden block md:flex md:grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20"><div class="md:flex md:h-16 text-sm md:grow pb-4 md:pb-0 border-b md:border-b-0"><a href=/posts/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 selected-menu-item me-4">Posts</a>
<a href=/docs/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Docs</a>
<a href=/categories/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Categories</a>
<a href=/series/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Series</a>
<a href=/tags/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Tags</a>
<a href=/love/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Love</a>
<a href=/about/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">About</a></div><div class=flex><div class="relative pt-4 md:pt-0"><div class="cursor-pointer hover:text-eureka" id=lightDarkMode><i class="fas fa-adjust"></i></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id=is-open></div><div class="absolute flex flex-col start-0 md:start-auto end-auto md:end-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40" id=lightDarkOptions><span class="px-4 py-1 hover:text-eureka" name=Light>Light</span>
<span class="px-4 py-1 hover:text-eureka" name=Dark>Dark</span>
<span class="px-4 py-1 hover:text-eureka" name=Auto>Auto</span></div></div></div></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id=is-open-mobile></div></nav><script>let element=document.getElementById("lightDarkMode");storageColorScheme==null||storageColorScheme=="Auto"?document.addEventListener("DOMContentLoaded",()=>{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",switchDarkMode)}):storageColorScheme=="Light"?(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","sun"),element.firstElementChild.classList.add("fa-sun")):storageColorScheme=="Dark"&&(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","moon"),element.firstElementChild.classList.add("fa-moon")),document.addEventListener("DOMContentLoaded",()=>{getcolorscheme(),switchBurger()})</script></div></header><main class="grow pt-16"><div class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl lg:px-4 xl:px-8"><div class="grid grid-cols-2 gap-4 lg:grid-cols-8 lg:pt-12"><div class="bg-secondary-bg col-span-2 rounded px-6 py-8 lg:col-span-6"><article class=prose><h1 class=mb-4>科力锐 Oracle RAC</h1><div class="text-tertiary-text not-prose mt-2 flex flex-row flex-wrap items-center"><div class="me-6 my-2"><i class="fas fa-calendar me-1"></i>
<span>2020-02-13</span></div><div class="me-6 my-2"><i class="fa-solid fa-pen-to-square me-1"></i>
<span>2020-02-13</span></div><div class="me-6 my-2"><i class="fas fa-clock me-1"></i>
<span>3 min read</span></div><div class="me-6 my-2"><i class="fas fa-folder me-1"></i>
<a href=https://b.hui.ke/categories/it/ class=hover:text-eureka>IT</a></div><div class="me-6 my-2"><i class="fas fa-th-list me-1"></i>
<a href=https://b.hui.ke/series/clerware/ class=hover:text-eureka>Clerware</a></div><div class="me-6 my-2"><i class="fa-solid fa-eye me-1"></i>
<span id=busuanzi_value_page_pv><i class="fa fa-spinner fa-spin"></i></span> Hits</div></div><p>  本文是对科力锐灾备培训中，针对 Oracle RAC 系统<strong>备份</strong>、<strong>接管</strong>、<strong>恢复</strong>的操作记录。为博主培训学习的<strong>个人笔记</strong>，未必是正确操作，<strong>勿将其作为</strong><del>科力锐官方技术文档</del>，仅供参考！</p><h2 id=备份>备份</h2><h3 id=注意事项>注意事项</h3><ol><li>备份需要使用灾备系统的集群备份</li><li>因为 RAC 的两个节点中的集群数据都是一样的，所以 RAC 的 CDP 备份，只保留 RAC 主节点的一份集群数据</li><li>因此需明确哪一台服务器作为主节点，后续接管验证或只恢复单节点验证业务，需选择主节点</li><li>科力锐灾备中的 RAC 主节点，为灾备时设置的主节点，不一定非要对应 RAC 本身已经设定好的主节点</li></ol><h3 id=备份前准备>备份前准备</h3><ol><li><p>需提前七个工作日将环境收集表及运行脚本生成的 .log 日志发送给科力锐技术支持</p></li><li><p>确认 RAC 的服务运行正常</p><pre><code class=language-shell>cd /u01/app/11.2.0/grid/bin/
./crs_stat -t     # 查看是否都是 ONLINE
</code></pre></li></ol><h3 id=开始备份>开始备份</h3><ol><li>安装灾备客户端</li><li>在灾备一体机中，查看客户端管理，确认两个 RAC 节点是否都在线</li><li>点击“集群备份计划”，选择新建备份，选择 RAC 的两个节点</li><li>选择备份的主节点</li><li>选择备份的策略
  由于 RAC 的 CDP 备份是单独授权，若没有此项授权，RAC 只能进行定时备份；由于 RAC 对磁盘读写比较敏感，当备份间隔频率过短，磁盘长时间处于繁忙状态时会影响 RAC 运行，所以定时备份的频率不得低于以小时为单位；如若对 RAC 业务数据的精确度比较高时，则可选用 CDP 备份，RAC CDP 的 RPO 趋近于 0，对RAC 性能影响小于 1%，当 CDP 保护期间被保护的 RAC 检测到 I/O 繁忙时，将自动暂停 CDP 保护；当数据 I/O 正常后自动恢复为 CDP 保护）</li><li>集群磁盘设置，灾备系统会自动关联共享磁盘</li><li>设置备份相关参数</li><li>立即进行 RAC 的备份</li></ol><h3 id=确认备份状态>确认备份状态</h3><h2 id=接管>接管</h2><h3 id=注意事项-1>注意事项</h3><ol><li>接管不支持同时接管两个节点，需同时恢复两个节点时，目标机需准备共享存储，磁盘与源机的磁盘对应（包括集群盘）</li><li>因为 RAC 需要扫描 IP 、网卡名、设备名等，所以接管时配置较为复杂</li></ol><h3 id=接管前准备>接管前准备</h3><ol><li><p>查看并记录网卡数量及对应IP，后续接管时要进行相关配置</p><pre><code class=language-shell>ifconfig
</code></pre></li><li><p>查看并记录网关及 DNS，后续接管时要进行相关配置</p></li></ol><h3 id=开始接管>开始接管</h3><p>  恢复 → 接管主机 → 新建 → 选择主节点 → 选择备份点 → 接管主机 → 选择具体备份点 → 根据源机情况进行相应配置</p><h3 id=确认-rac-服务启动情况>确认 RAC 服务启动情况</h3><pre><code class=language-shell>cd /u01/app/11.2.0/grid/bin/
./crsctl stat res -t -init     # 显示 STARTING 就是启动中，如正在启动，过段时间进行以下操作
./crs_stat -t     # 看是否都是 ONLINE，如有非核心业务 OFFLINE，确认是否与源机状态相同
</code></pre><h2 id=恢复>恢复</h2><h3 id=注意事项-2>注意事项</h3><p>  恢复单节点和普通恢复相同，只要选择 RAC 主节点的数据进行恢复即可。如需恢复双节点，则需提供共享存储</p><h3 id=恢复前准备>恢复前准备</h3><ol><li><p>查看并记录磁盘数量及容量</p><pre><code class=language-shell>lsblk     # 对应有系统盘和集群盘
</code></pre></li><li><p>网卡相应配置与上面接管相同</p></li></ol><h3 id=开始恢复>开始恢复</h3><p>  步骤与普通服务器恢复步骤相同，涉及到的例如网卡等配置问题参考接管相应配置</p><h3 id=确认-rac-服务启动状态与接管确认服务启动状态相同>确认 RAC 服务启动状态（与接管确认服务启动状态相同）</h3></article><div class=my-4><a href=https://b.hui.ke/tags/oracle-rac/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#Oracle RAC</a>
<a href=https://b.hui.ke/tags/%E7%81%BE%E5%A4%87/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#灾备</a></div><div class=py-2><div class="my-8 flex flex-col items-center md:flex-row"><a href=https://b.hui.ke/authors/hui.ke/ class="md:me-4 text-primary-text h-24 w-24"><img src=https://b.hui.ke/bagua.webp class="bg-primary-bg w-full rounded-full" alt=Avatar></a><div class="mt-4 w-full md:mt-0 md:w-auto"><a href=https://b.hui.ke/authors/hui.ke/ class="mb-2 block border-b pb-1 text-lg font-bold"><h3>Hui.Ke</h3></a><span class="block pb-2">❤ Cyber Security | Safety is a priority.</span>
<a href=mailto:3199731997@qq.com class=me-2><i class="fas fa-envelope"></i></a>
<a href="https://wpa.qq.com/msgrd?v=3&uin=3199731997" class=me-2><i class="fab fa-qq"></i></a>
<a href=/images/aixinxianquan.webp class=me-2><i class="fab fa-weixin"></i></a></div></div></div><div class="-mx-2 mt-4 flex flex-col border-t px-2 pt-4 md:flex-row md:justify-between"><div><span class="text-primary-text block font-bold">Previous</span>
<a href=https://b.hui.ke/posts/clerware-admin/ class=block>科力锐 超级管理员</a></div><div class="mt-4 md:mt-0 md:text-right"><span class="text-primary-text block font-bold">Next</span>
<a href=https://b.hui.ke/posts/build-taobao-coupon-website/ class=block>搭建淘宝领券网</a></div></div><div id=valine-comments class=mt-4></div><script defer src=https://cdn.jsdelivr.net/npm/valine@1.4.16/dist/Valine.min.js integrity=sha384-e0+DNUCJo75aOAzHQbFWYBCM9/S4f0BhRJXvEgbE3mMS85RM20MSSGStHuNdY2QK crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){new Valine({el:"#valine-comments",appId:"BQnVqWIiq78AdqwyhvBVAa3y-MdYXbMMI",appKey:"RKg5By312YjM8rU6WkkfK9IN",recordIP:"true",serverURLs:"https://l.hui.ke",visitor:"true"})})</script></div><div class=col-span-2><div class="bg-secondary-bg prose max-w-none rounded p-6"><h3>Series of Posts</h3><a href=https://b.hui.ke/posts/clerware-faq/ class=no-underline>科力锐灾备 常见问题</a><br><a href=https://b.hui.ke/posts/clerware-deployment-process/ class=no-underline>科力锐灾备（一体机）部署/上架流程</a><br><a href=https://b.hui.ke/posts/clerware-system-administrator/ class=no-underline>科力锐 系统管理员</a><br><a href=https://b.hui.ke/posts/clerware-admin/ class=no-underline>科力锐 超级管理员</a><br><a href=https://b.hui.ke/posts/clerware-oracle-rac/ class=no-underline>科力锐 Oracle RAC</a><br></div><div class="bg-primary-bg
prose sticky top-16 z-10 hidden px-6 py-4 lg:block"><h3>On This Page</h3></div><div class="sticky-toc hidden px-6 pb-6 lg:block"><nav id=TableOfContents><ul><li><a href=#备份>备份</a><ul><li><a href=#注意事项>注意事项</a></li><li><a href=#备份前准备>备份前准备</a></li><li><a href=#开始备份>开始备份</a></li><li><a href=#确认备份状态>确认备份状态</a></li></ul></li><li><a href=#接管>接管</a><ul><li><a href=#注意事项-1>注意事项</a></li><li><a href=#接管前准备>接管前准备</a></li><li><a href=#开始接管>开始接管</a></li><li><a href=#确认-rac-服务启动情况>确认 RAC 服务启动情况</a></li></ul></li><li><a href=#恢复>恢复</a><ul><li><a href=#注意事项-2>注意事项</a></li><li><a href=#恢复前准备>恢复前准备</a></li><li><a href=#开始恢复>开始恢复</a></li><li><a href=#确认-rac-服务启动状态与接管确认服务启动状态相同>确认 RAC 服务启动状态（与接管确认服务启动状态相同）</a></li></ul></li></ul></nav></div><script>window.addEventListener("DOMContentLoaded",()=>{enableStickyToc()})</script></div></div><script>document.addEventListener("DOMContentLoaded",()=>{hljs.highlightAll()})</script></div></div></main><footer class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl"><div class="text-center p-6 pin-b"><script async src=/js/click.js></script><div id=poem_ip></div><script type=text/javascript>jinrishici.load(function(e){tags.innerHTML=e.data.matchTags})</script><div><span id=timeDate>载入年天数...</span><span id=times>载入时分秒...</span>
<script async src=/js/duration.js></script></div><a href=https://www.foreverblog.cn/go.html target=_blank><img src=https://img.foreverblog.cn/wormhole_4_tp.gif alt style=display:inline-block;width:auto;height:32px title=穿梭虫洞-随机访问十年之约友链博客></a><p class="text-sm text-tertiary-text"><script async src=//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js></script>本站总访问量 <span id=busuanzi_value_site_pv></span> 次
&#183; 您是本站的第 <span id=busuanzi_value_site_uv></span> 个小伙伴</p><script async src=/js/tab.js></script></div></div></footer></body></html>